package com.twu.biblioteca;

import java.util.Arrays;
import java.util.List;

public class MovieCollection extends Collection {
    List<Movie> movies;
    String FORMAT = "%-30s%-30s%-30s\n";

    MovieCollection(Movie... movies) {
        super(movies);
        this.movies = Arrays.asList(movies);


    }

    @Override
    protected String getItemName() {
        return "movies";
    }

    @Override
    public String getTitles() {
        return String.format(FORMAT, "NAME", "DIRECTOR", "YEAR", "RATING");
    }
}
